package com.gameplatform.common.response;

import com.gameplatform.common.enums.ResultCodeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DataResponse<T> extends BaseResponse<T> {
    
    public DataResponse(ResultCodeEnum resultCode, T data) {
        super(resultCode, data);
    }

    public DataResponse(ResultCodeEnum resultCode, String message, T data) {
        super(resultCode, message, data);
    }

    public static <T> DataResponse<T> success(T data) {
        return new DataResponse<>(ResultCodeEnum.SUCCESS, data);
    }

    public static <T> DataResponse<T> success(T data, String message) {
        return new DataResponse<>(ResultCodeEnum.SUCCESS, message, data);
    }
} 